#include "ExtentEntry.h"
#include <stdlib.h>
#include <string>
using namespace std;

//first checks time then lun id, then offset.
bool ExtentEntry::operator> (const ExtentEntry* b) const
{
	if (my_time > b->my_time)
	{
		return true;
	}
	else if (my_time == b->my_time)
	{
		return my_extent > b->my_extent;
	}

	return false;
}

bool ExtentEntry::operator< (const ExtentEntry* b) const
{
	Extent* b_e = b->my_extent;
	if (my_time > b->my_time)
	{
		return false;
	}
	else if (my_time == b->my_time)
	{
		return b_e > my_extent;
	}

	return true;
}


